<template>
  <div id="app">
    <router-view />
  </div>
</template>
<script>
export default {
  props: [],
  data() {
    return {};
  },
  computed: {},
  methods: {},
  components: {},
  filters: {},
  watch: {},
  created() {
    if (
      window.sessionStorage.getItem("loginData") != null &&
      window.sessionStorage.getItem("loginData") != ""
    ) {
      var obj = {
        login: 1,
        username: window.sessionStorage.getItem("loginData")
      };
      this.$store.commit("loginName", obj);
    }
  },
  beforeMount() {},
  mounted() {},
  beforeUpdate() {},
  updated() {},
  beforeDestroy() {},
  destroyed() {}
};
</script>

<style>
html,
body {
  height: 100%;
}
#app {
  height: 100%;
}
</style>
